/* pages/buyticket/buyticket.wxss */
page{
  padding: 0;
  background-color: white ;
}

//隐藏滚动条
scroll-view ::-webkit-scrollbar{
  width: 0;
  height: 0;
  color: transparent;
  display: none;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50rpx 0;
  text-align: center;
}

.empty-icon {
  margin-bottom: 20rpx;
}

.empty-text {
  font-size: 28rpx;
  color: #999;
}
// 文本省略混入
@mixin text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.box {
  display: flex;
  height: 100vh;
  background-color: #f7f8fa;
  position: relative;
}

// 左侧菜单样式
.right-srocll {
  position: fixed;
  left: 0;
  top: 0;
  width: 25%;
  height: 100vh;
  background-color: #fff;
  border-right: 1rpx solid #ebedf0;
  z-index: 100;
  
  .scroll-y {
    height: 100vh;
    
    .category-item {
      padding: 30rpx 20rpx;
      border-bottom: 1rpx solid #f5f5f5;
      transition: all 0.3s ease;
      
      .category-name {
        font-size: 28rpx;
        color: #323233;
        text-align: center;
        
        .category-english {
          font-size: 20rpx;
          color: #969799;
          margin-top: 6rpx;
        }
      }
      
      &.active {
        color: #1989fa;
        background-color: #f7f8fa;
        border-left: 4rpx solid #1989fa;
        
        .category-name {
          color: #1989fa;
          font-weight: bold;
          
          .category-english {
            color: #1989fa;
          }
        }
      }

      &:active {
        background-color: #f2f3f5;
      }
    }
  }
}

// 右侧商品列表样式
.goods-list {
  flex: 1;
  width: 300rpx;
  margin-left: 25%; // 为左侧固定菜单留出空间
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  
  .search-fixed {
    position: fixed;
    right: 0;
    top: 0;
    width: 75%;
    background-color: #fff;
    z-index: 99;
    box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
  }
  
  .search-normal {
    background-color: #fff;
  }
  
  .list {
    flex: 1;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

// 分区标题
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20rpx 0;
  margin-bottom: 20rpx;
  
  .title {
    margin-left: 20rpx;
    font-size: 32rpx;
    font-weight: bold;
    color: #323233;
  }
  
  .more {
    font-size: 24rpx;
    color: #1989fa;
  }
}

// 套餐列表样式
.package-list {
  margin-bottom: 30rpx;
  
  .package-scroll {
    white-space: nowrap;
    padding: 10rpx 0;
  }
  
  .package-item {
    display: inline-block;
    width: 400rpx;
    margin-right: 20rpx;
    background-color: #fff;
    border-radius: 12rpx;
    overflow: hidden;
    box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
    
    &:last-child {
      margin-right: 0;
    }
    
    .package-image {
      width: 100%;
      height: 240rpx;
    }
    
    .package-info {
      padding: 16rpx;
      
      .package-name {
        font-size: 28rpx;
        font-weight: bold;
        color: #323233;
        margin-bottom: 8rpx;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      
      .package-desc {
        font-size: 24rpx;
        color: #969799;
        margin-bottom: 12rpx;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        white-space: normal;
        height: 72rpx;
      }
      
      .package-price {
        margin-bottom: 8rpx;
        
        .symbol {
          font-size: 24rpx;
          color: #ff4d4f;
        }
        
        .amount {
          font-size: 32rpx;
          font-weight: bold;
          color: #ff4d4f;
          margin: 0 4rpx;
        }
        
        .unit {
          font-size: 24rpx;
          color: #969799;
        }
      }
      
      .package-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8rpx;
        
        .tag {
          display: inline-block;
          padding: 4rpx 12rpx;
          font-size: 20rpx;
          color: #fff;
          border-radius: 4rpx;
          
          &.hot {
            background-color: #ff4d4f;
          }
          
          &.popular {
            background-color: #ff7a45;
          }
          
          &.score {
            background-color: #ffd21e;
          }
        }
      }
    }
  }
}

// 商品列表容器
.goods-container {
  padding: 10rpx;
}

// 商品卡片样式
.goods {
  display: flex;
  padding: 20rpx;
  margin-bottom: 20rpx;
  background-color: #fff;
  border-radius: 12rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  
  &.goods-hover {
    transform: scale(0.98);
    box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.08);
  }
  
  .goods-image {
    width: 200rpx;
    height: 200rpx;
    margin-right: 20rpx;
    border-radius: 8rpx;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    
    image {
      width: 100%;
      height: 100%;
    }
    
    .score {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 4rpx 8rpx;
      background: rgba(0, 0, 0, 0.6);
      color: #fff;
      font-size: 20rpx;
      display: flex;
      align-items: center;
      justify-content: center;
      
      .van-icon {
        margin-right: 4rpx;
      }
    }
  }
  
  .goods-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    
    .title {
      font-size: 30rpx;
      font-weight: bold;
      color: #323233;
      margin-bottom: 8rpx;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .type {
      font-size: 24rpx;
      color: #1989fa;
      margin-bottom: 8rpx;
    }
    
    .desc {
      font-size: 26rpx;
      color: #969799;
      margin-bottom: 12rpx;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
    }
    
    .bottom-info {
      margin-top: auto;
      
      .price-box {
        margin-bottom: 10rpx;
        
        .symbol {
          font-size: 24rpx;
          color: #ff4d4f;
        }
        
        .amount {
          font-size: 36rpx;
          font-weight: bold;
          color: #ff4d4f;
          margin: 0 4rpx;
        }
        
        .unit {
          font-size: 24rpx;
          color: #969799;
        }
      }
      
      .address {
        font-size: 24rpx;
        color: #969799;
        display: flex;
        align-items: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        
        .van-icon {
          margin-right: 6rpx;
          flex-shrink: 0;
        }
      }
    }
    
    .tags {
      margin-top: 10rpx;
      display: flex;
      flex-wrap: wrap;
      gap: 8rpx;
      
      .tag {
        display: inline-block;
        padding: 4rpx 12rpx;
        font-size: 20rpx;
        color: #fff;
        border-radius: 4rpx;
        
        &.hot {
          background-color: #ff4d4f;
        }
        
        &.popular {
          background-color: #ff7a45;
        }

        &.status {
          background-color: #52c41a;

          &.warning {
            background-color: #faad14;
          }
        }
      }
    }
  }
}

// 分类区域样式
.category-section {
  margin-bottom: 20rpx;
  background-color: #fff;
  border-radius: 12rpx;
  overflow: hidden;
  
  .category-header {
    padding: 30rpx 20rpx;
    background-color: #fff;
    
    .category-title {
      font-size: 32rpx;
      font-weight: bold;
      color: #323233;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .category-subtitle {
      font-size: 24rpx;
      color: #969799;
      margin-left: 12rpx;
    }
  }
}

// 空状态样式
.empty-category {
  padding: 60rpx 0;
  text-align: center;
  background-color: #fff;
  border-radius: 12rpx;
}

// 加载状态样式
.loading-status {
  padding: 30rpx 0;
  text-align: center;
  
  .no-more {
    color: #969799;
    font-size: 26rpx;
  }
  
  .empty {
    padding: 100rpx 0;
    border-radius: 12rpx;
  }
}

// 套餐网格布局
.package-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20rpx;
  padding: 10rpx;
}

.package-card {
  background-color: #fff;
  border-radius: 12rpx;
  overflow: hidden;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;

  &.package-hover {
    transform: scale(0.98);
    box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.08);
  }

  .package-image {
    width: 100%;
    height: 300rpx;
  }

  .package-info {
    padding: 16rpx;

    .package-name {
      font-size: 28rpx;
      font-weight: bold;
      color: #323233;
      margin-bottom: 8rpx;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .package-desc {
      font-size: 24rpx;
      color: #969799;
      margin-bottom: 12rpx;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
      height: 72rpx;
    }

    .package-price {
      margin-bottom: 8rpx;

      .symbol {
        font-size: 24rpx;
        color: #ff4d4f;
      }

      .amount {
        font-size: 32rpx;
        font-weight: bold;
        color: #ff4d4f;
        margin: 0 4rpx;
      }

      .unit {
        font-size: 24rpx;
        color: #969799;
      }
    }

    .package-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8rpx;

      .tag {
        display: inline-block;
        padding: 4rpx 12rpx;
        font-size: 20rpx;
        color: #fff;
        border-radius: 4rpx;

        &.hot {
          background-color: #ff4d4f;
        }

        &.popular {
          background-color: #ff7a45;
        }

        &.score {
          background-color: #ffd21e;
        }

        &.status {
          background-color: #52c41a;

          &.warning {
            background-color: #faad14;
          }
        }
      }
    }
  }
}